import { Button } from "antd";
import { css } from "@emotion/css";
import { useCallback, useState } from "react";
import UploadBox from "./uploadBox";
const Upload = () => {

  const [uploadModal, setUploadModal] = useState<boolean>(false);

  const showModal = (val: boolean) => {
    setUploadModal(val);
  }
  console.log('ss')

  return (<div className={css`position: relative;`}>
    <UploadBox uploadModal={uploadModal} setUploadModal={showModal} />
    <Button
      // style={{
      //   display: 'fixed', top: '100px', left: '1100px'
      // }}
      onClick={() => { showModal(!uploadModal) }}>upload</Button>
  </div>)
}

export default Upload;